<?php

namespace common\models\Expert;

use Yii;
use yii\db\ActiveRecord;
use yii\behaviors\TimestampBehavior;
use yii\helpers\ArrayHelper;
use yii\web\IdentityInterface;
use common\models\Invitation\Invitation;
use common\models\Invitation\InvitationSearch;
/**
 * This is the model class for table "expert".
 *
 * @property integer $id
 * @property string $username
 * @property string $sex
 * @property string $phone
 * @property string $zhaopian
 * @property string $telephone
 * @property string $email
 * @property string $compamy
 * @property string $zhiwu
 * @property string $birthday
 * @property string $comefrom
 * @property string $bnumber
 * @property string $loc_town
 * @property string $chengguo
 * @property string $reason
 */
class Expert extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'expert';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [

            [['username','password', 'sex', 'phone', 'zhaopian', 'telephone', 'email', 'compamy', 'zhiwu', 'birthday', 'comefrom', 'bnumber','loc_town', 'chengguo','reason'], 'required'],
            [['username','password', 'phone', 'zhaopian', 'telephone', 'email', 'compamy', 'zhiwu', 'birthday', 'comefrom', 'bnumber', 'loc_town', 'chengguo', 'reason'], 'string', 'max' => 255],
            [['sex'], 'string', 'max' => 32],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'username' => Yii::t('app', '姓名'),
            'password' => Yii::t('app', '密码'),
            'sex' => Yii::t('app', '性别'),
            'phone' => Yii::t('app', '手机'),
            'zhaopian' => Yii::t('app', '照片'),
            'telephone' => Yii::t('app', '固定电话'),
            'email' => Yii::t('app', '邮箱'),
            'compamy' => Yii::t('app', '公司'),
            'zhiwu' => Yii::t('app', '职务'),
            'birthday' => Yii::t('app', '身份证'),
            'comefrom' => Yii::t('app', '开户行'),
            'bnumber' => Yii::t('app', '银行卡号'),
            'loc_town' => Yii::t('app', '专业领域'),
            'chengguo' => Yii::t('app', '文章成果'),
            'reason' => Yii::t('app', '学习及工作经历'),
        ];
    }

   
    
   

}
